package com.mq.Mapper;

import com.mq.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from users where email=#{email}")
     User getUserByUserEmail(String email) ;

    @Insert("insert into users( username, password, email,phone)values (#{username},#{encryptedPassword},#{email},#{phone})")
    void register(String email, String username, String encryptedPassword, String phone);
}
